package com.sys.sprinngboot.goodtheater.service;

import com.sys.sprinngboot.goodtheater.bean.User;
import com.sys.sprinngboot.goodtheater.dao.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Service
public class HelloService {
    @Autowired
    UserMapper userMapper;

    public User userById(Integer id){
        return userMapper.getUserById(id);
    }
}
